import 'package:fluttertoast/fluttertoast.dart';
class Toast{
  static Toast _instance = Toast();
  static Toast getInstance(){
    return _instance;
  }


showSuccess({msg = '提示'}){
    Fluttertoast.cancel();

    Fluttertoast.showToast(msg: msg,gravity: ToastGravity.CENTER);
  }

  showError({msg = ''}){

    Fluttertoast.cancel();

    Fluttertoast.showToast(msg: msg,gravity: ToastGravity.CENTER);

  }
}